<?php

namespace app\service\index;

use app\db\index\D_adManage;

class S_adManage
{
    public $D_adManage;

    public function __construct()
    {
        $this->D_adManage = new D_adManage();
    }

    /**
     * 获取广告位所有广告
     * @param string $paramObj
     * @return array
     */
    public function getList($paramObj=""){
        return $this->D_adManage->getList($paramObj);
    }

    /**
     * 获取广告位详细信息
     * @param string $paramObj
     * @return array
     */
    public function info($paramObj=""){
        return $this->D_adManage->info($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}